package com.iscreen.dbupgrade.queries;

import java.util.List;

import com.iscreen.dbupgrade.objects.InsertRows;
import com.iscreen.dbupgrade.objects.NewRow;

public abstract class InsertValuesQuery implements UpgradeQuery
{
	private InsertRows query;
	
	protected InsertValuesQuery(InsertRows query)
	{
		this.query = query;
	}

	public String getTableName()
	{
		return query.getTableName();
	}
	
	public List<String> getFieldNames()
	{
		return query.getFields().getName();
	}
	
	public List<NewRow> getRows()
	{
		return query.getRows().getRow();
	}
}
